package com.aca.market.service;

import com.aca.market.entity.IndentItem;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;
import java.util.concurrent.ConcurrentMap;

public interface IIndentItemService extends IService<IndentItem> {
    IPage<IndentItem> selectPage(Page<IndentItem> page, Wrapper<IndentItem> queryWrapper);

    //单个分类下所有商品的销售情况
    List<IndentItem> getTypeItemSale(List<Long> typeIdList,Boolean salesDesc);

    //销量排行（名字：销量映射表）
    ConcurrentMap<String, Integer> getBestSellerItem();

    BigDecimal getMonthPurchaseCost();

    //月净利润
    BigDecimal getMonthNetProfile();

    BigDecimal getMonthProfit();

    BigDecimal getLoss();

    Integer getIndentsCount();

    Integer getUsersCount();
}
